package com.example.lightble;

import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;


public abstract class GattOperation {
    private BluetoothDevice mDevice;
    private String mOperationTag;  //操作描述.
    public GattOperation(BluetoothDevice device) {
        mDevice = device;
    }

    public abstract void execute(BluetoothGatt bluetoothGatt);
    public void setTag(String tag)
    {
    	mOperationTag=tag;
    }
    public String getTag()
    {
    	return mOperationTag;
    }
    public BluetoothDevice getDevice() {
        return mDevice;
    }
    public abstract boolean hasAvailableCompletionCallback();

}
